home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gNumSpr, g1erSprLoc, gBoutons
- set gNumSpr to g1erSprLoc
- gBoutons(appuie, gNumSpr)
- end
-
- on mouseUp
- global g1erSprLoc, gEtatEtud, gCodEnv, gBoutons, gOldBt, gNumSpr, gTextEnvL, gSurvolPrec
- if gNumSpr = g1erSprLoc then
- set monNumEnv to getPos(gCodEnv, gEtatEtud)
- set monTxt to getAt(gTextEnvL, monNumEnv)
- set the visible of sprite 3 to 0
- set the visible of sprite 4 to 0
- if word 1 of the name of cast the castNum of sprite gNumSpr = "BTGBQ2" then
- set the text of cast "TXT ENV" to line 2 of monTxt
- gBoutons(habille, g1erSprLoc, "BTGBQ1 0")
- else
- set the text of cast "TXT ENV" to line 1 of monTxt
- gBoutons(habille, g1erSprLoc, "BTGBQ2 0")
- end if
- set the visible of sprite 3 to 1
- set the visible of sprite 4 to 1
- end if
- gBoutons(relache, gNumSpr)
- set gSurvolPrec to -1
- end
-